package scau.mis4.chanyulin.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import scau.mis4.chanyulin.base.common.IBaseMapper;
import scau.mis4.chanyulin.entity.Good;

import java.util.List;

/**
 * Created by cyl on 2018/03/27.
 * Good Dao层
 */
@Repository
public interface IGoodMapper extends IBaseMapper<Good> {

    List<Good> findAllGood();

    Good findGoodById(@Param("id") String id);

    Good findGoodByGoodNo(@Param("goodNo") String goodNo);

    int deleteGoodAndDetailByGoodId(@Param("goodId") String goodId);

}
